package com.slipper.sfts.stock;

import com.slipper.common.util.ResultUtil;
import com.slipper.sfts.api.stock.bo.StockDealBO;
import com.slipper.sfts.api.stock.service.IStockDealSv;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/stockDeal")
public class StockDealController {
    @Resource
    private IStockDealSv stockDealSv;

    @PostMapping(value = "/queryPage")
    public String queryPage(@RequestBody StockDealBO bo) {
        return ResultUtil.toJson(stockDealSv.queryPage(bo));
    }

    @PostMapping(value = "/queryMemberReportPage")
    public String queryMemberReportPage(@RequestBody StockDealBO bo) {
        return ResultUtil.toJson(stockDealSv.queryMemberReportPage(bo));
    }

    @PostMapping(value = "/queryBrokerReportPage")
    public String queryBrokerReportPage(@RequestBody StockDealBO bo) {
        return ResultUtil.toJson(stockDealSv.queryBrokerReportPage(bo));
    }

    @PostMapping(value = "/queryDateReportPage")
    public String queryDateReportPage(@RequestBody StockDealBO bo) {
        return ResultUtil.toJson(stockDealSv.queryDateReportPage(bo));
    }
}
